package part14_迭代器模式_统一遍历问题;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: Client
 * @Author: AllenSun
 * @Date: 2020/3/8 14:19
 */
public class Client {
    public static void main(String[] args) {
        List<Colleage> colleageList=new ArrayList<Colleage>();

        ComputerCollege computerCollege=new ComputerCollege();
        InfoCollege infoColleage=new InfoCollege();

        colleageList.add(computerCollege);
        colleageList.add(infoColleage);

        Output output=new Output(colleageList);
        output.printCollege();

    }
}
